package com.wxzz.elearing.course.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.wxzz.elearning.common.bean.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 学习计划
 */
@Data
public class StudyPlan extends BaseEntity {

    @ApiModelProperty(value = "学习计划名称")
    private String planName;

    @ApiModelProperty(value = "企业id")
    private Long enterpriseId;

    @ApiModelProperty(value = "学习计划主图")
    private String planPicture;

    @ApiModelProperty(value = "学习人数")
    private Integer studyNum;

    @ApiModelProperty(value = "未完成人数")
    private Integer unfinishedNum;

    @ApiModelProperty(value = "完成人数")
    private Integer finishedNum;

    @ApiModelProperty(value = "学习计划介绍")
    private String planDetail;

    @ApiModelProperty(value = "聊天室id")
    private Long roomId;

    @ApiModelProperty(value = "0-待上架 1-已上架")
    private Integer status;

    @ApiModelProperty(value = "结束时间")
    private LocalDateTime finishTime;

    @TableField(exist = false)
    @ApiModelProperty(value = "学习期数(单元数量)")
    private Integer studyPlanUnitNum = 0;

    @TableField(exist = false)
    @ApiModelProperty(value = "课程门数")
    private Integer curriculumNum = 0;

    @TableField(exist = false)
    @ApiModelProperty(value = "学习进度 xx.xx%")
    private BigDecimal studySchedule = new BigDecimal("0.00");

    @TableField(exist = false)
    @ApiModelProperty(value = "上次学习章节名称")
    private String sectionName;
}
